package demo1;

public class Demo04Phonereturn {
    public static void main(String[] args) {
        System.out.println("===========");

        Phone two = getPhone();
        System.out.println(two.brand);
        System.out.println(two.price);
        System.out.println(two.color);
    }

    public static Phone getPhone() {
        Phone one = new Phone();
        one.brand = "华为";
        one.price = 5700.36;
        one.color = "黑色";

        return  one;

    }
}

